build:	buildFS buildW buildJT buildC

buildFS:
	javac -classpath lib/zookeeper-3.3.2.jar:lib/log4j-1.2.15.jar ZkConnector.java PoolCreator.java FileServer.java
runFS:
	java -classpath lib/zookeeper-3.3.2.jar:lib/log4j-1.2.15.jar:. FileServer

buildW:
	javac -classpath lib/zookeeper-3.3.2.jar:lib/log4j-1.2.15.jar ZkConnector.java PoolCreator.java FileServer.java Worker.java
runW:
	java -classpath lib/zookeeper-3.3.2.jar:lib/log4j-1.2.15.jar:. Worker

buildJT:
	javac -classpath lib/zookeeper-3.3.2.jar:lib/log4j-1.2.15.jar ZkConnector.java PoolCreator.java JobTrackerNewJobThread.java JobTrackerRecoveryThread.java JobTrackerStatusQueryThread.java FileServer.java JobTracker.java
runJT:
	java -classpath lib/zookeeper-3.3.2.jar:lib/log4j-1.2.15.jar:. JobTracker

buildC:
	javac -classpath lib/zookeeper-3.3.2.jar:lib/log4j-1.2.15.jar ZkConnector.java Client.java
runC:
	java -classpath lib/zookeeper-3.3.2.jar:lib/log4j-1.2.15.jar:. Client

clean:
	rm -f *.class
